import Vue from 'vue';
import VueRouter from 'vue-router';
import authRoutes from '@/router/auth-routes';

Vue.use(VueRouter);

//白名单路由
const routes = [
	{
		path: '/login',
		name: 'Login',
		component: () => import('@/views/Login.vue'),
	},
	{
		path: '/404',
		name: 'NotFound',
		component: () => import('@/views/NotFound'),
	},
];

const router = new VueRouter({
	mode: 'hash',
	linkActiveClass: 'is-active',
	routes,
});

router.addRoutes(authRoutes);

export default router;
